// 引入dom
const dom = require("./dom.js")

// 公共运动顶部导航
module.exports = {
    navbar(fliename){
        let html = `
            <a href="exercising_run.html" class="${fliename === "exercising_run" ? "active" : ""}">跑步</a>
            <a href="exercising_riding.html" class="${fliename === "exercising_riding" ? "active" : ""}">骑行</a>
            <a href="exercising_course.html" class="${fliename === "exercising_course" ? "active" : ""}">课程训练</a>
        `
        dom.get(".navbar").innerHTML = html;
    }
}